package com.ruoyi.project.system.interact.service.impl;

import java.util.List;

import com.ruoyi.common.utils.text.Convert;
import com.ruoyi.project.system.interact.domain.Exhibition;
import com.ruoyi.project.system.interact.mapper.ExhibitionMapper;
import com.ruoyi.project.system.interact.service.IExhibitionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 云游展厅Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-07-15
 */
@Service
public class ExhibitionServiceImpl implements IExhibitionService
{
    @Autowired
    private ExhibitionMapper exhibitionMapper;

    /**
     * 查询云游展厅
     * 
     * @param id 云游展厅ID
     * @return 云游展厅
     */
    @Override
    public Exhibition selectExhibitionById(Long id)
    {
        return exhibitionMapper.selectExhibitionById(id);
    }

    /**
     * 查询云游展厅列表
     * 
     * @param exhibition 云游展厅
     * @return 云游展厅
     */
    @Override
    public List<Exhibition> selectExhibitionList(Exhibition exhibition)
    {
        return exhibitionMapper.selectExhibitionList(exhibition);
    }

    /**
     * 新增云游展厅
     * 
     * @param exhibition 云游展厅
     * @return 结果
     */
    @Override
    public int insertExhibition(Exhibition exhibition)
    {
        return exhibitionMapper.insertExhibition(exhibition);
    }

    /**
     * 修改云游展厅
     * 
     * @param exhibition 云游展厅
     * @return 结果
     */
    @Override
    public int updateExhibition(Exhibition exhibition)
    {
        return exhibitionMapper.updateExhibition(exhibition);
    }

    /**
     * 删除云游展厅对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteExhibitionByIds(String ids)
    {
        return exhibitionMapper.deleteExhibitionByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除云游展厅信息
     * 
     * @param id 云游展厅ID
     * @return 结果
     */
    @Override
    public int deleteExhibitionById(Long id)
    {
        return exhibitionMapper.deleteExhibitionById(id);
    }
}